<script>
	export default {
		onLaunch: function() {
			console.log('App Launch');
			try {
				const savedData = uni.getStorageSync('globalData');
				if (savedData) {
					this.globalData = savedData;
					console.log("读取存储数据成功");
				}
			} catch (e) {
				console.error('读取存储数据失败:', e);
			}
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
		globalData: {
			targetBlogEid: '1',
			// rootUrl: 'http://127.0.0.1:8080',
			// rootUrl: 'http://192.168.0.109:8080',
			rootUrl: 'http://124.70.160.214:8080',
			person_info: {
				"personPhoneNumber": null,
				"personName": null,
				"position": null,
				"password": null,
				"createTime": null
			},
			fire_video_info:{
				"fireId":null,
				"videoPath":null,
				"fireLevel":null,
				"latitude":null,
				"longitude":null,
				"recordTime":null,
				"droneId":null,
				"routeName":null
			}
			//personPhoneNumber为0表示未登录
		}
	}
</script>

<style>
	/*每个页面公共css */
</style>